/******************************************************************************
 * @File name   :      MemberInof.java
 *
 * @Author      :      ANMA
 *
 * @Date        :      Jul 20, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * ----------------------------------------------------------------------------
 * Date                         Who         Version         Comments
 * Jul 20, 2015 6:25:30 PM    ANMA      1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.member.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * 
 */
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TM_RAW_MEMBER")
@AttributeOverrides({
	@AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
	@AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class MemberInfo extends BaseDomain implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String memberName;
	private String mobilePhone;//唯一
	private String wechatId;
	private String memberNumber;
	private Long dealerId;
	private String marsMemberId;
	private String marsDealerId;
	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the memberName
	 */
	@Column(name="MEMBER_NAME", nullable = false)
	public String getMemberName() {
		return memberName;
	}

	/**
	 * @param memberName the memberName to set
	 */
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}



	/**
	 * @return the mobilePhone
	 */
	@Column(name="MOBILE_PHONE", nullable = false)
	public String getMobilePhone() {
		return mobilePhone;
	}

	/**
	 * @param mobilePhone the mobilePhone to set
	 */
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	/**
	 * @return the wechatId
	 */
	@Column(name="WECHAT_ID")
	public String getWechatId() {
		return wechatId;
	}

	/**
	 * @param wechatId the wechatId to set
	 */
	public void setWechatId(String wechatId) {
		this.wechatId = wechatId;
	}

	/**
	 * @return the memberNumber
	 */
	@Column(name="MEMBER_NUMBER")
	public String getMemberNumber() {
		return memberNumber;
	}

	/**
	 * @param memberNumber the memberNumber to set
	 */
	public void setMemberNumber(String memberNumber) {
		this.memberNumber = memberNumber;
	}

	/**
	 * @return the dealerId
	 */
	@Column(name="DEALER_ID")
	public Long getDealerId() {
		return dealerId;
	}

	/**
	 * @param dealerId the dealerId to set
	 */
	public void setDealerId(Long dealerId) {
		this.dealerId = dealerId;
	}

    /**
     * @return the marsMemberId
     */
	@Column(name="MARS_MEMBER_ID")
    public String getMarsMemberId() {
        return marsMemberId;
    }

    /**
     * @param marsMemberId the marsMemberId to set
     */
    public void setMarsMemberId(String marsMemberId) {
        this.marsMemberId = marsMemberId;
    }

    /**
     * @return the marsDealerId
     */
    @Column(name="MARS_DEALER_ID")
    public String getMarsDealerId() {
        return marsDealerId;
    }

    /**
     * @param marsDealerId the marsDealerId to set
     */
    public void setMarsDealerId(String marsDealerId) {
        this.marsDealerId = marsDealerId;
    }
	
    
	

}
